

import request from '@/router/axios'


export function exportExcel(query) {
  return request({
    url: '/subwayst/swStInvalidTicketProduce/export',
    method: 'get',
    responseType:'blob',
    params: query
  })
}

export function fetchList(query) {
  return request({
    url: '/subwayst/swStInvalidTicketProduce/page',
    method: 'get',
    params: query
  })
}

export function addObj(obj) {
  return request({
    url: '/subwayst/swStInvalidTicketProduce/',
    method: 'post',
    data: obj
  })
}

export function getObj(id) {
  return request({
    url: '/subwayst/swStInvalidTicketProduce/' + id,
    method: 'get'
  })
}

export function delObj(row) {
  return request({
    url: '/subwayst/swStInvalidTicketProduce/' + row.id,
    method: 'delete'
  })
}

export function delsObj(row) {
  return request({
    url: '/subwayst/swStInvalidTicketProduce/delBatch',
    method: 'delete',
    data:row
  })
}

export function auditObj(obj) {
  return request({
    url: '/subwayst/swStInvalidTicketProduce/audit',
    method: 'put',
    data: obj
  })
}

export function submitObj(obj) {
  return request({
    url: '/subwayst/swStInvalidTicketProduce/submit',
    method: 'put',
    data: obj
  })
}

export function submitBatch(obj) {
  return request({
    url: '/subwayst/swStInvalidTicketProduce/submitBatch',
    method: 'put',
    data: obj
  })
}


export function putObj(obj) {
  return request({
    url: '/subwayst/swStInvalidTicketProduce/',
    method: 'put',
    data: obj
  })
}

